#ifndef TGA_IMAGE_H
#define TGA_IMAGE_H

#define TGA_RGB		 2
#define TGA_A		 3
#define TGA_RLE		10

#include "jpeglib.h"

// TODO: change TGAImage into Image...
struct TGAImage
{
	int channels;
	int sizeX;
	int sizeY;
	unsigned char *data;
};

TGAImage *loadBMP(const char *fileName);
TGAImage *loadTGA(const char *fileName);
TGAImage *loadJPG(const char *fileName);
void decodeJPG(jpeg_decompress_struct *info, TGAImage *imageData);

#endif //TGA_IMAGE_H